home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / gcl-1.000 / gcl-1 / gcl-1.0 / doc / makefile < prev    next >
Encoding:
Makefile  |  1994-05-10  |  1.1 KB  |  46 lines

  1. # a facility for displaying DOC files and completing on them
  2. # requires gnu emacs, to be in the search path
  3.  
  4. # A directory on peoples search path.
  5. LBINDIR=/usr/local/bin
  6. EMACS=emacs
  7. ELISP=gcl.el dbl.el find-doc.el ansi-doc.el lisp-complete.el sshell.el
  8.  
  9. FILES= print_doc.c edoc ${ELISP} makefile
  10.  
  11.  
  12. install: current-emacs-path print_doc edoc DOC-keys.el
  13.  
  14.  
  15.  
  16. print_doc: print_doc.c
  17.     $(CC) -o print_doc print_doc.c
  18.  
  19. DOC-keys.el: DOC
  20.     echo '(load-file "find-doc.el")(snarf-doc "DOC")' > tmp.el~
  21.     ${EMACS} -batch -l tmp.el~     
  22.     rm -f lsp/tmp.el~
  23.  
  24.  
  25. current-emacs-path: print_doc
  26.     @echo ">>>>>>You may need to be superuser to install the .el files and
  27.     @echo ">>>>>> the other executables  <<<<<<<<<<<<<"
  28.     sleep 1
  29.     echo '(generate-new-buffer "emacs-path")' \
  30.     '(insert (nth (1- (length load-path)) load-path))' \
  31.     '(write-file "emacs-path")' > tmp.el~
  32.     ${EMACS} -batch -l tmp.el~
  33.     -cp ${ELISP} `cat emacs-path`
  34.     echo '(generate-new-buffer "emacs-path")' \
  35.     '(insert (nth (1- (length exec-path)) exec-path))' \
  36.     '(write-file "emacs-path")' > tmp.el~
  37.     ${EMACS} -batch -l tmp.el~
  38.     -cp print_doc   `cat emacs-path`
  39.     -cp edoc   `cat emacs-path`
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.